package com.bolingcavalry.crm.summaryorder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.entity.summaryorder.ServiceSummaryOrder;
import com.vo.ServiceSummaryOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ServiceSummaryOrderMapper extends BaseMapper<ServiceSummaryOrder> {
    IPage<ServiceSummaryOrderVO> getBypage(IPage<ServiceSummaryOrderVO> page,
                                           @Param("serviceNumber") String serviceNumber,
                                           @Param("customerCompany") String customerCompany,
                                           @Param("salesManager") String salesManager,
                                           @Param("startDate") String startDate,
                                           @Param("endDate") String endDate);

    void updateStatus(Long id, String status);

    void updateStatusByOrderNumber(String orderNumber, String status);
}